<template>
  <div class="container">
    <div class="content">
      <div id="captcha" class="captcha" />
      <login-form />
    </div>
    <Footer />
    <back-ground />
  </div>
</template>

<script lang="ts" setup>
import LoginForm from "@/views/login/components/login-form.vue";
import BackGround from "@/views/login/components/background/index.vue";
</script>

<style lang="less" scoped>
.container {
  display: flex;
  height: 100vh;
  background-image: url("../../assets/images/background.jpg");
  background-repeat: no-repeat;
  background-size: cover;

  .content {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    transform: translate(-50%, -50%);
    z-index: 2;
  }

  .footer {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
  }

  .header {
    position: absolute;
    top: 0;
    left: 22px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    width: 100%;
    padding: @spacing-7 @spacing-0;

    &-text {
      margin-right: 4px;
      margin-left: 4px;
      font-size: 26px;
      font-weight: 500;
      color: rgb(var(--color-text-1));
    }
  }
}

@media (max-height: @screen-md) {
  .footer {
    display: none;
  }
}

.captcha {
  position: fixed;
  z-index: 1000;
}
</style>
